<?php echo form_open('admin_link/add_categories', array('id' => 'register')); ?>
<div id="content">
    <?php if ($this->session->flashdata('error')): ?>
        <div class="affiche_erreur">
        <?php echo $this->session->flashdata('error'); ?>
    	</div>
    <?php endif; ?>
    
    <?php if (isset($add_error) && ($add_error != null)): ?>
        <div class="affiche_erreur">
        <?php echo $add_error; ?>
    	</div>
    <?php endif; ?>
   
   <div id="title_content"><?php echo lang('add')." Catégorie" ?></div>
    <?php echo form_open_multipart('admin_link/add_categories'); ?>
        <table class="form_content" width="100%">
        <tr>
            <td width="20%"><?php echo "Nom catégorie" ?></td>
            <td>
                <?php if (form_error('name') != "") {
                ?> <div class="form_error"><?php echo generate_pure_text(form_error('name'), '<p>', '</p>'); ?></div> <?php } ?>
                <input type="text" class="form_input" name="name" size="35" maxlength="40" value="<?php echo set_value('name'); ?>" /></td>
        </tr>
             
        <tr>
            <td colspan="2"><input type="submit" name="add_category" value="<?php echo lang('add')?>" class="form_submit" /></td>
        </tr>
    </table>
    <?php echo form_close(); ?>
</div>